from ship import *

def test():
    # 突破数值
    limit1 = LimitBreakPromotion(LimitBreakAttrsInc(62, 4, 18, 7, 0, 13))
    limit2 = LimitBreakPromotion(LimitBreakAttrsInc(124, 7, 35, 15, 0, 26))
    limit3 = LimitBreakPromotion(LimitBreakAttrsInc(187, 11, 52, 22, 0, 40))
    lb = LimitBreak(limit1, limit2, limit3)
    # 强化数值
    enhancement = Enhancement((15, 70, 0, 57))
    # 改造数值
    retrofit = Retrofit(True, True, hp=165, fp=10, trp=55, eva=40, spd=3)
    # 状态模块
    ship_state = ShipState(level=100, affinity=50, enhancement=enhancement, limit_break=lb, retrofit=retrofit)
    # 属性基础值
    ship_base_attrs = ShipBaseAttrs(255, ArmorType.LIGHT, 76, 15, 71, 78, 30, 0, 71,
                                    53, 43, 65, 9)
    # 属性成长值
    ship_growth_attrs = ShipGrowthAttrs(7260, 529, 204, 904, 1428, 652, 0, 1093, 600)
    # 属性模块
    ship_attrs = ShipAttrs(Camp.ROYAL, "标枪", ShipType.DD, Rarity.ELITE, ship_base_attrs, ship_growth_attrs,
                     ship_state)



    Ship(ship_attrs,None,ship_state)


    for i in ShipAttr:
        print(i.name, ':', ship_attrs.get_attr(i))


if __name__ == '__main__':
    test()